/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package scalafx.scene.control

import javafx.scene.{control => jfxsc}
import scalafx.Includes._
import scalafx.util.SFXDelegate
import collection.JavaConversions._
import scalafx.scene.TextInputControl.TextInputControl
import javafx.event.EventHandler
import javafx.event.ActionEvent

object TextField {
  implicit def sfxTextField2jfx(v: TextField) = v.delegate
}

/*
 - should implement all the JavaFX properties *** FAILED ***
[info]   Missing Properties: expandedPane (PropertyComparator.scala:50)
[info] - should implement all the JavaFX builder properties *** FAILED ***
[info]   Missing Properties: expandedPaneProperty, getExpandedPane, getPanes, setExpandedPane (PropertyComparator.scala:60)
 */
class TextField(override val delegate:jfxsc.TextField = new jfxsc.TextField) extends TextInputControl with SFXDelegate[jfxsc.TextField] {
  
  def onAction = delegate.onActionProperty
  def onAction_= (v:EventHandler[ActionEvent]) { onAction() = v }
  
  def prefColumnCount = delegate.prefColumnCountProperty
  def prefColumnCount_= (v: Int) { prefColumnCount() = v }

  def promptText = delegate.promptTextProperty
  def promptText_= (v: String) { promptText() = v }
}
